#ifndef __DAEMON_H
#define __DAEMON_H

#include "typedefs.h"

#define DAEMON_MESSAGE_HEAD_MEAN_START				0x26

#define DAEMON_MESSAGE_BEGIN_PICK							DAEMON_MESSAGE_HEAD_MEAN_START
#define DAEMON_MESSAGE_MOTOR_TARGET						(DAEMON_MESSAGE_BEGIN_PICK + 1)
#define DAEMON_MESSAGE_MOTOR_FORWARD					(DAEMON_MESSAGE_MOTOR_TARGET + 1)
#define DAEMON_MESSAGE_MOTOR_BACK							(DAEMON_MESSAGE_MOTOR_FORWARD + 1)
#define DAEMON_MESSAGE_MOTOR_FORWARD_NO_PUT							(DAEMON_MESSAGE_MOTOR_BACK + 1)
#define DAEMON_MESSAGE_MOTOR_BACK_NO_PUT							(DAEMON_MESSAGE_MOTOR_FORWARD_NO_PUT + 1)
bool Daemon_Send_Message(uint8_t* message,uint8_t num);
uint8_t* Daemon_Read_Message(void);
bool Daemon_Read_Message_Busy(void);

void Daemon_Loop(void);

#endif
